package com.xz.knowledgeDuplication.pattern.decorator;

/**
 * 炒饭类(具体构件)
 *
 * @author 召
 * @date 2022-03-12 22:37:37
 */
public class FriedRice extends FastFood{

    public FriedRice() {
        super(10, "炒饭");
    }

    @Override
    public float cost() {
        return getPrice();
    }
}
